<!DOCTYPE html>



  


<html class="theme-next pisces use-motion" lang="zh-Hans">
<head>
  <meta charset="UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1"/>
<meta name="theme-color" content="#222">









<meta http-equiv="Cache-Control" content="no-transform" />
<meta http-equiv="Cache-Control" content="no-siteapp" />
















  
  
  <link href="/blog/lib/fancybox/source/jquery.fancybox.css?v=2.1.5" rel="stylesheet" type="text/css" />







<link href="/blog/lib/font-awesome/css/font-awesome.min.css?v=4.6.2" rel="stylesheet" type="text/css" />

<link href="/blog/css/main.css?v=5.1.4" rel="stylesheet" type="text/css" />


  <link rel="apple-touch-icon" sizes="180x180" href="/blog/images/apple-touch-icon-next.png?v=5.1.4">


  <link rel="icon" type="image/png" sizes="32x32" href="/blog/images/favicon-32x32-next.png?v=5.1.4">


  <link rel="icon" type="image/png" sizes="16x16" href="/blog/images/favicon-16x16-next.png?v=5.1.4">


  <link rel="mask-icon" href="/blog/images/logo.svg?v=5.1.4" color="#222">





  <meta name="keywords" content="Java并发,Java," />










<meta name="description" content="从JDK发展中了解Java并发Java 5之前并发实现 Java Green Thread Java Native Thread  编程模型 Runnable Thread  局限性Java 5并发框架 J.U.C = java.util.concurrent  编程框架 executor Thread Runnable Callable/Future  Java 7并行框架 Fork/Join">
<meta name="keywords" content="Java并发,Java">
<meta property="og:type" content="article">
<meta property="og:title" content="从JDK发展中了解Java并发">
<meta property="og:url" content="https://docted.gitee.io/blog/2018/08/12/从JDK发展中了解Java并发/index.html">
<meta property="og:site_name" content="DoCted Mad Max">
<meta property="og:description" content="从JDK发展中了解Java并发Java 5之前并发实现 Java Green Thread Java Native Thread  编程模型 Runnable Thread  局限性Java 5并发框架 J.U.C = java.util.concurrent  编程框架 executor Thread Runnable Callable/Future  Java 7并行框架 Fork/Join">
<meta property="og:locale" content="zh-Hans">
<meta property="og:updated_time" content="2018-08-12T15:32:45.000Z">
<meta name="twitter:card" content="summary">
<meta name="twitter:title" content="从JDK发展中了解Java并发">
<meta name="twitter:description" content="从JDK发展中了解Java并发Java 5之前并发实现 Java Green Thread Java Native Thread  编程模型 Runnable Thread  局限性Java 5并发框架 J.U.C = java.util.concurrent  编程框架 executor Thread Runnable Callable/Future  Java 7并行框架 Fork/Join">



<script type="text/javascript" id="hexo.configurations">
  var NexT = window.NexT || {};
  var CONFIG = {
    root: '/blog/',
    scheme: 'Pisces',
    version: '5.1.4',
    sidebar: {"position":"left","display":"post","offset":12,"b2t":false,"scrollpercent":false,"onmobile":false},
    fancybox: true,
    tabs: true,
    motion: {"enable":true,"async":false,"transition":{"post_block":"fadeIn","post_header":"slideDownIn","post_body":"slideDownIn","coll_header":"slideLeftIn","sidebar":"slideUpIn"}},
    duoshuo: {
      userId: '0',
      author: '博主'
    },
    algolia: {
      applicationID: '',
      apiKey: '',
      indexName: '',
      hits: {"per_page":10},
      labels: {"input_placeholder":"Search for Posts","hits_empty":"We didn't find any results for the search: ${query}","hits_stats":"${hits} results found in ${time} ms"}
    }
  };
</script>



  <link rel="canonical" href="https://docted.gitee.io/blog/2018/08/12/从JDK发展中了解Java并发/"/>





  <title>从JDK发展中了解Java并发 | DoCted Mad Max</title>
  





  <script type="text/javascript">
    var _hmt = _hmt || [];
    (function() {
      var hm = document.createElement("script");
      hm.src = "https://hm.baidu.com/hm.js?ee4facdb1d0129e3f40579db6692a626";
      var s = document.getElementsByTagName("script")[0];
      s.parentNode.insertBefore(hm, s);
    })();
  </script>




</head>

<body itemscope itemtype="http://schema.org/WebPage" lang="zh-Hans">

  
  
    
  

  <div class="container sidebar-position-left page-post-detail">
    <div class="headband"></div>

    <header id="header" class="header" itemscope itemtype="http://schema.org/WPHeader">
      <div class="header-inner"><div class="site-brand-wrapper">
  <div class="site-meta ">
    

    <div class="custom-logo-site-title">
      <a href="/blog/"  class="brand" rel="start">
        <span class="logo-line-before"><i></i></span>
        <span class="site-title">DoCted Mad Max</span>
        <span class="logo-line-after"><i></i></span>
      </a>
    </div>
      
        <p class="site-subtitle">Max</p>
      
  </div>

  <div class="site-nav-toggle">
    <button>
      <span class="btn-bar"></span>
      <span class="btn-bar"></span>
      <span class="btn-bar"></span>
    </button>
  </div>
</div>

<nav class="site-nav">
  

  
    <ul id="menu" class="menu">
      
        
        <li class="menu-item menu-item-home">
          <a href="/blog/" rel="section">
            
              <i class="menu-item-icon fa fa-fw fa-home"></i> <br />
            
            首页
          </a>
        </li>
      
        
        <li class="menu-item menu-item-about">
          <a href="/blog/about/" rel="section">
            
              <i class="menu-item-icon fa fa-fw fa-user"></i> <br />
            
            关于
          </a>
        </li>
      
        
        <li class="menu-item menu-item-tags">
          <a href="/blog/tags/" rel="section">
            
              <i class="menu-item-icon fa fa-fw fa-tags"></i> <br />
            
            标签
          </a>
        </li>
      
        
        <li class="menu-item menu-item-categories">
          <a href="/blog/categories/" rel="section">
            
              <i class="menu-item-icon fa fa-fw fa-th"></i> <br />
            
            分类
          </a>
        </li>
      
        
        <li class="menu-item menu-item-archives">
          <a href="/blog/archives/" rel="section">
            
              <i class="menu-item-icon fa fa-fw fa-archive"></i> <br />
            
            归档
          </a>
        </li>
      
        
        <li class="menu-item menu-item-commonweal">
          <a href="/blog/404/" rel="section">
            
              <i class="menu-item-icon fa fa-fw fa-heartbeat"></i> <br />
            
            公益404
          </a>
        </li>
      

      
    </ul>
  

  
</nav>



 </div>
    </header>

    <main id="main" class="main">
      <div class="main-inner">
        <div class="content-wrap">
          <div id="content" class="content">
            

  <div id="posts" class="posts-expand">
    

  

  
  
  

  <article class="post post-type-normal" itemscope itemtype="http://schema.org/Article">
  
  
  
  <div class="post-block">
    <link itemprop="mainEntityOfPage" href="https://docted.gitee.io/blog/blog/2018/08/12/从JDK发展中了解Java并发/">

    <span hidden itemprop="author" itemscope itemtype="http://schema.org/Person">
      <meta itemprop="name" content="DoCted Z">
      <meta itemprop="description" content="">
      <meta itemprop="image" content="/blog/images/avatar.gif">
    </span>

    <span hidden itemprop="publisher" itemscope itemtype="http://schema.org/Organization">
      <meta itemprop="name" content="DoCted Mad Max">
    </span>

    
      <header class="post-header">

        
        
          <h1 class="post-title" itemprop="name headline">从JDK发展中了解Java并发</h1>
        

        <div class="post-meta">
          <span class="post-time">
            
              <span class="post-meta-item-icon">
                <i class="fa fa-calendar-o"></i>
              </span>
              
                <span class="post-meta-item-text">发表于</span>
              
              <time title="创建于" itemprop="dateCreated datePublished" datetime="2018-08-12T22:10:11+08:00">
                2018-08-12
              </time>
            

            

            
          </span>

          
            <span class="post-category" >
            
              <span class="post-meta-divider">|</span>
            
              <span class="post-meta-item-icon">
                <i class="fa fa-folder-o"></i>
              </span>
              
                <span class="post-meta-item-text">分类于</span>
              
              
                <span itemprop="about" itemscope itemtype="http://schema.org/Thing">
                  <a href="/blog/categories/Java/" itemprop="url" rel="index">
                    <span itemprop="name">Java</span>
                  </a>
                </span>

                
                
                  ， 
                
              
                <span itemprop="about" itemscope itemtype="http://schema.org/Thing">
                  <a href="/blog/categories/Java/待完善/" itemprop="url" rel="index">
                    <span itemprop="name">待完善</span>
                  </a>
                </span>

                
                
              
            </span>
          

          
            
              <span class="post-comments-count">
                <span class="post-meta-divider">|</span>
                <span class="post-meta-item-icon">
                  <i class="fa fa-comment-o"></i>
                </span>
                <a href="/blog/2018/08/12/从JDK发展中了解Java并发/#comments" itemprop="discussionUrl">
                  <span class="post-comments-count valine-comment-count" data-xid="/blog/2018/08/12/从JDK发展中了解Java并发/" itemprop="commentCount"></span>
                </a>
              </span>
            
          

          
          

          

          

          

        </div>
      </header>
    

    
    
    
    <div class="post-body" itemprop="articleBody">

      
      

      
        <h1 id="从JDK发展中了解Java并发"><a href="#从JDK发展中了解Java并发" class="headerlink" title="从JDK发展中了解Java并发"></a>从JDK发展中了解Java并发</h1><h2 id="Java-5之前"><a href="#Java-5之前" class="headerlink" title="Java 5之前"></a>Java 5之前</h2><h3 id="并发实现"><a href="#并发实现" class="headerlink" title="并发实现"></a>并发实现</h3><ul>
<li>Java Green Thread</li>
<li>Java Native Thread</li>
</ul>
<h3 id="编程模型"><a href="#编程模型" class="headerlink" title="编程模型"></a>编程模型</h3><ul>
<li>Runnable</li>
<li>Thread</li>
</ul>
<h3 id="局限性"><a href="#局限性" class="headerlink" title="局限性"></a>局限性</h3><h2 id="Java-5"><a href="#Java-5" class="headerlink" title="Java 5"></a>Java 5</h2><h3 id="并发框架"><a href="#并发框架" class="headerlink" title="并发框架"></a>并发框架</h3><ul>
<li>J.U.C = java.util.concurrent</li>
</ul>
<h3 id="编程框架"><a href="#编程框架" class="headerlink" title="编程框架"></a>编程框架</h3><ul>
<li>executor</li>
<li>Thread</li>
<li>Runnable</li>
<li>Callable/Future</li>
</ul>
<h2 id="Java-7"><a href="#Java-7" class="headerlink" title="Java 7"></a>Java 7</h2><h3 id="并行框架"><a href="#并行框架" class="headerlink" title="并行框架"></a>并行框架</h3><ul>
<li>Fork/Join</li>
</ul>
<h3 id="编程框架-1"><a href="#编程框架-1" class="headerlink" title="编程框架"></a>编程框架</h3><ul>
<li>ForkJoinPool</li>
<li>ForkJoinTask</li>
<li>RecursiveAction</li>
</ul>
<h3 id="Future的限制"><a href="#Future的限制" class="headerlink" title="Future的限制"></a>Future的限制</h3><h2 id="Java-8"><a href="#Java-8" class="headerlink" title="Java 8"></a>Java 8</h2><h3 id="异步并行框架"><a href="#异步并行框架" class="headerlink" title="异步并行框架"></a>异步并行框架</h3><ul>
<li>Fork/Join</li>
</ul>
<h3 id="编程模型-1"><a href="#编程模型-1" class="headerlink" title="编程模型"></a>编程模型</h3><ul>
<li>CompletionState</li>
<li>CompletableFuture</li>
</ul>
<h2 id="Java-9"><a href="#Java-9" class="headerlink" title="Java 9"></a>Java 9</h2>
      
    </div>
    
    
    

    

    

    

    <footer class="post-footer">
      
        <div class="post-tags">
          
            <a href="/blog/tags/Java并发/" rel="tag"># Java并发</a>
          
            <a href="/blog/tags/Java/" rel="tag"># Java</a>
          
        </div>
      

      
      
      

      

      
      
    </footer>
  </div>
  
  
  
  </article>



    <div class="post-spread">
      
    </div>
  </div>


          </div>
          


          

  
    <div class="comments" id="comments">
      <div id="SOHUCS"></div>
    </div>

  


        </div>
        
          
  
  <div class="sidebar-toggle">
    <div class="sidebar-toggle-line-wrap">
      <span class="sidebar-toggle-line sidebar-toggle-line-first"></span>
      <span class="sidebar-toggle-line sidebar-toggle-line-middle"></span>
      <span class="sidebar-toggle-line sidebar-toggle-line-last"></span>
    </div>
  </div>

  <aside id="sidebar" class="sidebar">
    
    <div class="sidebar-inner">

      

      
        <ul class="sidebar-nav motion-element">
          <li class="sidebar-nav-toc sidebar-nav-active" data-target="post-toc-wrap">
            文章目录
          </li>
          <li class="sidebar-nav-overview" data-target="site-overview-wrap">
            站点概览
          </li>
        </ul>
      

      <section class="site-overview-wrap sidebar-panel">
        <div class="site-overview">
          <div class="site-author motion-element" itemprop="author" itemscope itemtype="http://schema.org/Person">
            
              <p class="site-author-name" itemprop="name">DoCted Z</p>
              <p class="site-description motion-element" itemprop="description"></p>
          </div>

          <nav class="site-state motion-element">

            
              <div class="site-state-item site-state-posts">
              
                <a href="/blog/archives/">
              
                  <span class="site-state-item-count">1</span>
                  <span class="site-state-item-name">日志</span>
                </a>
              </div>
            

            
              
              
              <div class="site-state-item site-state-categories">
                <a href="/blog/categories/index.html">
                  <span class="site-state-item-count">2</span>
                  <span class="site-state-item-name">分类</span>
                </a>
              </div>
            

            
              
              
              <div class="site-state-item site-state-tags">
                <a href="/blog/tags/index.html">
                  <span class="site-state-item-count">2</span>
                  <span class="site-state-item-name">标签</span>
                </a>
              </div>
            

          </nav>

          

          

          
          

          
          

          

        </div>
      </section>

      
      <!--noindex-->
        <section class="post-toc-wrap motion-element sidebar-panel sidebar-panel-active">
          <div class="post-toc">

            
              
            

            
              <div class="post-toc-content"><ol class="nav"><li class="nav-item nav-level-1"><a class="nav-link" href="#从JDK发展中了解Java并发"><span class="nav-number">1.</span> <span class="nav-text">从JDK发展中了解Java并发</span></a><ol class="nav-child"><li class="nav-item nav-level-2"><a class="nav-link" href="#Java-5之前"><span class="nav-number">1.1.</span> <span class="nav-text">Java 5之前</span></a><ol class="nav-child"><li class="nav-item nav-level-3"><a class="nav-link" href="#并发实现"><span class="nav-number">1.1.1.</span> <span class="nav-text">并发实现</span></a></li><li class="nav-item nav-level-3"><a class="nav-link" href="#编程模型"><span class="nav-number">1.1.2.</span> <span class="nav-text">编程模型</span></a></li><li class="nav-item nav-level-3"><a class="nav-link" href="#局限性"><span class="nav-number">1.1.3.</span> <span class="nav-text">局限性</span></a></li></ol></li><li class="nav-item nav-level-2"><a class="nav-link" href="#Java-5"><span class="nav-number">1.2.</span> <span class="nav-text">Java 5</span></a><ol class="nav-child"><li class="nav-item nav-level-3"><a class="nav-link" href="#并发框架"><span class="nav-number">1.2.1.</span> <span class="nav-text">并发框架</span></a></li><li class="nav-item nav-level-3"><a class="nav-link" href="#编程框架"><span class="nav-number">1.2.2.</span> <span class="nav-text">编程框架</span></a></li></ol></li><li class="nav-item nav-level-2"><a class="nav-link" href="#Java-7"><span class="nav-number">1.3.</span> <span class="nav-text">Java 7</span></a><ol class="nav-child"><li class="nav-item nav-level-3"><a class="nav-link" href="#并行框架"><span class="nav-number">1.3.1.</span> <span class="nav-text">并行框架</span></a></li><li class="nav-item nav-level-3"><a class="nav-link" href="#编程框架-1"><span class="nav-number">1.3.2.</span> <span class="nav-text">编程框架</span></a></li><li class="nav-item nav-level-3"><a class="nav-link" href="#Future的限制"><span class="nav-number">1.3.3.</span> <span class="nav-text">Future的限制</span></a></li></ol></li><li class="nav-item nav-level-2"><a class="nav-link" href="#Java-8"><span class="nav-number">1.4.</span> <span class="nav-text">Java 8</span></a><ol class="nav-child"><li class="nav-item nav-level-3"><a class="nav-link" href="#异步并行框架"><span class="nav-number">1.4.1.</span> <span class="nav-text">异步并行框架</span></a></li><li class="nav-item nav-level-3"><a class="nav-link" href="#编程模型-1"><span class="nav-number">1.4.2.</span> <span class="nav-text">编程模型</span></a></li></ol></li><li class="nav-item nav-level-2"><a class="nav-link" href="#Java-9"><span class="nav-number">1.5.</span> <span class="nav-text">Java 9</span></a></li></ol></li></ol></div>
            

          </div>
        </section>
      <!--/noindex-->
      

      

    </div>
  </aside>


        
      </div>
    </main>

    <footer id="footer" class="footer">
      <div class="footer-inner">
        <div class="copyright">&copy; <span itemprop="copyrightYear">2018</span>
  <span class="with-love">
    <i class="fa fa-user"></i>
  </span>
  <span class="author" itemprop="copyrightHolder">DoCted Z</span>

  
</div>


  <div class="powered-by">由 <a class="theme-link" target="_blank" href="https://hexo.io">Hexo</a> 强力驱动</div>



  <span class="post-meta-divider">|</span>



  <div class="theme-info">主题 &mdash; <a class="theme-link" target="_blank" href="https://github.com/iissnan/hexo-theme-next">NexT.Pisces</a> v5.1.4</div>




        







        
      </div>
    </footer>

    
      <div class="back-to-top">
        <i class="fa fa-arrow-up"></i>
        
      </div>
    

    

  </div>

  

<script type="text/javascript">
  if (Object.prototype.toString.call(window.Promise) !== '[object Function]') {
    window.Promise = null;
  }
</script>









  












  
  
    <script type="text/javascript" src="/blog/lib/jquery/index.js?v=2.1.3"></script>
  

  
  
    <script type="text/javascript" src="/blog/lib/fastclick/lib/fastclick.min.js?v=1.0.6"></script>
  

  
  
    <script type="text/javascript" src="/blog/lib/jquery_lazyload/jquery.lazyload.js?v=1.9.7"></script>
  

  
  
    <script type="text/javascript" src="/blog/lib/velocity/velocity.min.js?v=1.2.1"></script>
  

  
  
    <script type="text/javascript" src="/blog/lib/velocity/velocity.ui.min.js?v=1.2.1"></script>
  

  
  
    <script type="text/javascript" src="/blog/lib/fancybox/source/jquery.fancybox.pack.js?v=2.1.5"></script>
  


  


  <script type="text/javascript" src="/blog/js/src/utils.js?v=5.1.4"></script>

  <script type="text/javascript" src="/blog/js/src/motion.js?v=5.1.4"></script>



  
  


  <script type="text/javascript" src="/blog/js/src/affix.js?v=5.1.4"></script>

  <script type="text/javascript" src="/blog/js/src/schemes/pisces.js?v=5.1.4"></script>



  
  <script type="text/javascript" src="/blog/js/src/scrollspy.js?v=5.1.4"></script>
<script type="text/javascript" src="/blog/js/src/post-details.js?v=5.1.4"></script>



  


  <script type="text/javascript" src="/blog/js/src/bootstrap.js?v=5.1.4"></script>



  


  




	





  





  










  <script src="//cdn1.lncld.net/static/js/3.0.4/av-min.js"></script>
  <script src="//unpkg.com/valine/dist/Valine.min.js"></script>
  
  <script type="text/javascript">
    var GUEST = ['nick','mail','link'];
    var guest = 'nick,mail,link';
    guest = guest.split(',').filter(item=>{
      return GUEST.indexOf(item)>-1;
    });
    new Valine({
        el: '#comments' ,
        verify: false,
        notify: false,
        appId: 'GuzRqh2xru82u4BLQlktvCpL-gzGzoHsz',
        appKey: 'mNuxEwKfIoKoVd2ylt9F0Bj9',
        placeholder: 'ヾﾉ≧∀≦)o来啊，快活啊!',
        avatar:'mm',
        guest_info:guest,
        pageSize:'10' || 10,
    });
  </script>





  





  

  

  

  
  

  

  

  

</body>
</html>
